<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "order_status_backend_log".
 *
 * @property integer $id
 * @property string $orderno
 * @property integer $old_status
 * @property integer $new_status
 * @property string $opt_name
 * @property string $opt_time
 * @property string $remark
 */
class OrderStatusBackendLog extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'order_status_backend_log';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['old_status', 'new_status'], 'integer'],
            [['opt_time'], 'safe'],
            [['orderno'], 'string', 'max' => 20],
            [['opt_name'], 'string', 'max' => 50],
            [['remark'], 'string', 'max' => 512],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'orderno' => '订单号',
            'old_status' => '原状态',
            'new_status' => '新状态',
            'opt_name' => '操作人',
            'opt_time' => '操作时间',
            'remark' => '顾客备注',
        ];
    }
}
